package com.example.lenovo.lockscreenview;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.example.lenovo.lockscreenview.LockScreenView01.LockScreenActivity1;
import com.example.lenovo.lockscreenview.LockScreenView02.LockScreenActivity2;
import com.example.lenovo.lockscreenview.LockScreenView03.LockScreenActivity3;
import com.example.lenovo.lockscreenview.LockScreenView04.UnlockGesturePasswordActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.button1, R.id.button2, R.id.button3,R.id.button4})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.button1:
//                Toast.makeText(this,"dasdasdas",Toast.LENGTH_SHORT).show();
                startActivity(new Intent(MainActivity.this, LockScreenActivity1.class));
                break;
            case R.id.button2:
                startActivity(new Intent(MainActivity.this, LockScreenActivity2.class));
                break;
            case R.id.button3:
                startActivity(new Intent(MainActivity.this, LockScreenActivity3.class));
                break;
            case R.id.button4:
                startActivity(new Intent(MainActivity.this, UnlockGesturePasswordActivity.class));
                break;
        }
    }
}
